package top.suven.base.core.mybatis;

import java.util.List;

/**
 * Created by lixiangling on 2017/5/15.
 *
 * @author : lixiangling
 * @version : V1.0.0
 * @title : 分页抽象类
 * @description :
 * @copyright: (c) 2017 bigdoctor by http://www.bigdoctor.cn
 * @since : 2017/5/15 下午4:26
 */
public class PageData<T> {
    private final List<T> data;

    private final int count;

    private final int code;

    private final String msg;

    public PageData(List<T> data, int count) {
        this.data = data;
        this.count = count;
        this.code = 0;
        this.msg = "";
    }

    public int getCount() {
        return count;
    }

    public List<T> getData() {
        return data;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
